package com.tao.media.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tao.base.model.PageParams;
import com.tao.base.model.PageResult;
import com.tao.media.domain.dto.QueryMediaParamsDto;
import com.tao.media.domain.dto.UploadFilesDto;
import com.tao.media.domain.pojo.MediaFiles;
import com.tao.media.domain.vo.UploadFilesVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 媒资信息 服务类
 * </p>
 *
 * @author taohongrun
 * @since 2024-11-05
 */
public interface IMediaFilesService extends IService<MediaFiles> {
    PageResult<MediaFiles> queryMediaFiels(Long companyId, PageParams pageParams, QueryMediaParamsDto queryMediaParamsDto);

     UploadFilesVo uploadFiles(Long companyId, MultipartFile file,String htmlObject) throws Exception;

    boolean checkBlock(String md5,int chunk);

    boolean checkFile(String md5);
    void mergerBlockFiles(String fileMd5,String fileName,int totalChunk,Long companyId);

    boolean uploadBlockFiles(MultipartFile file,String fileMd5,int chunk);
}
